import { Routes, Route } from 'react-router-dom'
import { HashRouter } from "react-router-dom";
import RoutesList from './route'

const RenderRoutes = () => {
  return <HashRouter>
    <Routes>
      {
        RoutesList.map((item: any, index: number) => {
          return <Route key={index} path={item.path} element={item.element} />
        })
      }
    </Routes>
  </HashRouter>
}
export default RenderRoutes